import 'model/file_result.dart';
import 'model/image_picker.dart';
import 'platform_service_platform_interface.dart';

class PlatformService {
  static Future<String?> getPlatformVersion() {
    return PlatformServicePlatform.instance.getPlatformVersion();
  }

  static Future<NDFileInfo?> takePicture(
      {bool isWaterMark = false,
        bool isWaterMarkTiled = false,
        List<ImageWaterMarkSettingModel>? waterMarkSettings}) {
    var instance = PlatformServicePlatform.instance;
    return instance.takePicture(
      isWaterMark: isWaterMark,
      isWaterMarkTiled: isWaterMarkTiled,
      waterMarkSettings: waterMarkSettings,
    );
  }

  static Future<List<NDFileInfo>> pickImages(
      {int maxCount = 8,
        bool enableCamera = false,
        bool isWaterMark = false,
        bool isWaterMarkTiled = false,
        List<ImageWaterMarkSettingModel>? waterMarkSettings}) {
    return PlatformServicePlatform.instance.pickImages(
      maxCount: maxCount,
      enableCamera: enableCamera,
      isWaterMark: isWaterMark,
      isWaterMarkTiled: isWaterMarkTiled,
      waterMarkSettings: waterMarkSettings,
    );
  }

  static Future<NDFilePickerResult> pickFile() {
    return PlatformServicePlatform.instance.pickFile();
  }
}
